const addTodos = (state=0, action) => {
    switch(action.type) {
        case 'ADD_TODO':
            return state + 1;
        case 'MINU_TODO':
            return state > 0 ? state - 1 : 0;
        default:
            return state;
    }
}

export default addTodos;